package com.ruihu.admin.module.business.electric.config.controller;

import com.ruihu.admin.common.anno.OperateLog;
import com.ruihu.admin.common.controller.BaseController;
import com.ruihu.admin.common.domain.ResponseDTO;
import com.ruihu.admin.constant.ElectricConfigTypeEnum;
import com.ruihu.admin.module.business.electric.config.domain.vo.ElectricTypeVO;
import com.ruihu.admin.module.business.electric.config.service.ElectricConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = {"电芯配置维护"})
@OperateLog
public class CellTypeConfigController extends BaseController {

    @Autowired
    private ElectricConfigService electricConfigService;

    @ApiOperation(value = "查询电芯类型",notes = "@author Tony")
    @GetMapping("/electricConfig/queryCellType")
    public ResponseDTO<List<ElectricTypeVO>> queryCellType() {
        return electricConfigService.queryElectricConfig(ElectricConfigTypeEnum.CELL_TYPE_CONFIG);
    }
}
